
# stripped-down knapsack model.
# parameters etc will be defined in the .run file. 

maximize Total_Benefit:
sum{i in N} y[i]*inputdata[i,'Benefit'];

subject to Max_Weight:
sum{i in N} y[i]*inputdata[i,'Weight'] <= MaxCapacity;


subject to Covers{j in MAX_COVERS : card(COVERS[j]) <>0}:
sum {i in COVERS[j]} y[i] <=card(COVERS[j])-1;


